package br.edu.utfpr.md.apps;

import java.io.FileInputStream;
import java.io.ObjectInputStream;

import br.edu.utfpr.md.beans.Livro;

public class Deserializa {
	public static void main(String[] args) throws Exception {
		FileInputStream inFile = new FileInputStream("OOComJava.txt");
		ObjectInputStream unserializer = new ObjectInputStream(inFile);
		Livro ooComJava = (Livro) unserializer.readObject();
		System.out.println(ooComJava.getNome());
	}
}
